package cn.stylefeng.guns.modular.business.frequency.modifyrecord.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 修改记录
 *
 * @author yujie
 * @date 2023/05/09 17:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ModifyRecordParam extends BaseParam {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空",groups = {edit.class})
    private Long id;

    /**
     * description
     */
    @NotNull(message = "description不能为空",groups = {add.class,edit.class})
    private String description;

    /**
     * type
     */
    @NotNull(message = "type不能为空",groups = {add.class,edit.class})
    private String type;

    /**
     * method
     */
    @NotNull(message = "method不能为空",groups = {add.class,edit.class})
    private String method;

    /**
     * params
     */
    @NotNull(message = "params不能为空",groups = {add.class,edit.class})
    private String params;

    /**
     * request_ip
     */
    @NotNull(message = "request_ip不能为空",groups = {add.class,edit.class})
    private String requestIp;

    /**
     * username
     */
    @NotNull(message = "username不能为空",groups = {add.class,edit.class})
    private String username;

    /**
     * 创建时间
     */
    private Date createTime;

}
